﻿import json;
import requests;
import time;

class bg:


	def tijiaoCC(self):

		url = 'http://od.qumei.com/cc/callCC.php?type=1';
		# url = 'http://49.233.122.9/cc/callCC.php?type=1';
		parmas = {'type':'1'};

		r = requests.get(url = url,data = json.dumps(parmas) ,timeout=30);

		print(r.text)

	def sleeptime(self,hour,min,sec):

		return hour*3600 + min*60 + sec;


if __name__ == '__main__':


	b = bg()
	second = b.sleeptime(0,0,5);
	while (1==1):

		try:
			b.tijiaoCC(); #转单提交
			time.sleep(second);
		except :
			print('error')
